<?php
require_once APP_DIR .'/main/presenters/MainAddPresenter.php';
require_once APP_DIR .'/main/views/MainAddView.php';

class MainAddPage extends Page {
    
	public function Setup() {
		$this->AddPresenter('MainAdd', 'mainadd');		
		$this->AttachPagelet(new CommonMenuPagelet);
	} 
	
	public function HandleAddButtonClicked() {
	    Dispatch::Redirect(array('page' => 'list'));
	}
}

?>